import request from '@/utils/request'

// 查询图文内容列表
export function listSketch(query) {
  return request({
    url: '/system/sketch/list',
    method: 'get',
    params: query
  })
}

// 查询图文内容详细
export function getSketch(sketchId) {
  return request({
    url: '/system/sketch/' + sketchId,
    method: 'get'
  })
}

// 新增图文内容
export function addSketch(data) {
  return request({
    url: '/system/sketch',
    method: 'post',
    data: data
  })
}

// 修改图文内容
export function updateSketch(data) {
  return request({
    url: '/system/sketch',
    method: 'put',
    data: data
  })
}

// 删除图文内容
export function delSketch(sketchId) {
  return request({
    url: '/system/sketch/' + sketchId,
    method: 'delete'
  })
}
